package com.rmfyzxfw.caseprocess.model.converter;

import com.rmfyzxfw.caseprocess.model.cmd.ProcessCmd;
import com.rmfyzxfw.caseprocess.model.cmd.ProcessEditCmd;
import com.rmfyzxfw.caseprocess.model.cmd.ProcessManageCmd;
import com.rmfyzxfw.caseprocess.model.po.Process;
import com.rmfyzxfw.caseprocess.model.vo.ProcessListVO;
import com.rmfyzxfw.caseprocess.model.vo.ProcessVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @description:
 * @Author: GYW  742926306@qq.com
 * @Date: 2024/8/21 15:06
 */
@Mapper(componentModel = "spring")
public interface ProcessConverter {
    Process cmd2do(ProcessCmd cmd);

    Process cmd2do(ProcessEditCmd cmd);

    ProcessVO do2vo(Process process);
    List<ProcessListVO> dos2vos(List<Process> processes);

    Process cmd2do(ProcessManageCmd cmd);
}